package fasilkom.antz.util;

import com.golden.gamedev.object.Sprite;
import com.golden.gamedev.object.SpriteGroup;


/**
 * Miscelaneous utilities.
 *
 */
public abstract class Util {

	public static boolean groupContains(SpriteGroup group, Sprite sprite) {
		for (Sprite i : group.getSprites()) {
			if (i == null)
				continue;
			if (i == sprite)
				return i.isActive();
		}
		return false;
	}
}
